<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/3/6 0006
  Time: 18:53
  To change this template use File | Settings | File Templates.
--%>
<%--            <td>--%>
<%--                <f:formatDate value="${u.createTime}" pattern="yyyy-MM-dd"></f:formatDate>--%>
<%--            </td>--%>
<%--            <td>--%>
<%--                <f:formatDate value="${u.updateTime}" pattern="yyyy-MM-dd"></f:formatDate>--%>
<%--            </td>--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="1" cellpadding="0" cellspacing="0" align="center">
    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>年龄</th>
        <th>性别</th>
        <th>电话</th>
        <th>头像</th>

    </tr>
    <c:forEach items="${requestScope.pageInfo.list}" var="u">
        <tr>
            <td>${u.id}</td>
            <td>${u.name}</td>
            <td>${u.age}</td>
            <td>${u.gender}</td>
            <td>${u.phone}</td>
            <td>${u.picture}</td>
            <td><a href="/user/delete?id=${u.id}">删除</a></td>
            <td><a href="/user/id?id=${u.id}">添加</a></td>
        </tr>
    </c:forEach>
        <tr>
            <td colspan="4">
                <a href="/user/getAll?current=1">首页</a>
                <a href="/user/getAll?current=${pageInfo.pageNum-1}">上一页</a>
                <a href="/user/getAll?current=${pageInfo.pageNum+1}">下一页</a>
                <a href="/user/getAll?current=${pageInfo.pages}">尾页</a>
            </td>
        </tr>
</table>
</body>
</html>

